import request from '@/utils/request';

// 课程档案列表
export const courseList = params => request({
    url: '/course/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 列表(患者邀约专用)
export const courseInviteList = params => request({
    url: '/course/inviteList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品策略分页查询(无权限)
export const selectListAll = params => request({
    url: '/presented/selectListAll',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程档案添加
export const courseAdd = params => request({
    url: '/course/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程下的赠品列表
export const drugListByCourse = params => request({
    url: '/course/drugListByCourse',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 参班的赠品列表
export const listDrugPresented = params => request({
    url: '/presented/listDrugPresented',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程档案编辑
export const courseUpdate = params => request({
    url: '/course/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程档案关闭
export const statusUpdate = params => request({
    url: '/course/status/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品详情
export const courseGetDetail = params => request({
    url: '/course/gift/get',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程签到列表
export const courseGetList = params => request({
    url: '/course/gift/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 课程档案详情
export const courseDetail = params => request({
    url: '/course/get',
    method: 'GET',
    params
});
// 课程科室
export const getDeptYardTree = params => request({
    url: '/depts/getDeptYardTree',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 宣教排班列表
export const arrangeList = params => request({
    url: '/business/course/arrange/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 选择宣教员
export const arrangeAdd = params => request({
    url: '/business/course/arrange/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 医生排班
export const doctorCourseList = params => request({
    url: '/business/course/arrange/doctorCourseList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 医生排班
export const getDoctorList = params => request({
    url: '/business/course/arrange/doctorList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 选择医生
export const doctorAdd = params => request({
    url: '/business/course/arrange/doctorAdd',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 删除
export const delDoctor = params => request({
    url: '/business/course/arrange/delDoctor',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 导出
export const arrangeExport = params => request({
    url: '/business/course/arrange/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
